import request from '@/utils/request'
import { apiHomMeun, apiUpMeun, apiHomAvater, apiUpAvatar } from '@/routerConfig'

export function getMeun() {
  return request({
    url: apiHomMeun,
    method: 'get'
  })
}

export function upMeun(data) {
  return request({
    url: apiUpMeun,
    method: 'post',
    data
  })
}
export function getAVatar() {
  return request({
    url: apiHomAvater,
    method: 'get'
  })
}
export function upAvatar(data) {
  return request({
    url: apiUpAvatar,
    method: 'post',
    data
  })
}
